<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Format/index')}">规格列表</a></li>
			<li><a href="{:url('Format/add')}">新增规格</a></li>
		</ul>
		<form action="{:url('')}" method="post" class="margin-top-20">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="40">ID</th>
						<th align="left">规格名称</th>
						<th align="left">状态</th>
						<th width="160">操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="data" item="vo">
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo.format}</td>
							<if condition="$vo.status eq 1">
							<td>开启</td>
							<else/>
							<td>关闭</td>
							</if>
							<td>								
								<a href="{:url('Format/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>

							</td>
						</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>	
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>